// 状态常量
export const STATUS = {
  ONLINE: 'online',
  OFFLINE: 'offline',
  WARNING: 'warning',
  NORMAL: 'normal',
  ERROR: 'error',
  RUNNING: 'running',
  STOPPED: 'stopped'
} as const

export const ALARM_LEVEL = {
  CRITICAL: 'critical',
  WARNING: 'warning',
  INFO: 'info'
} as const

export const ALARM_STATUS = {
  ACTIVE: 'active',
  PENDING: 'pending',
  RESOLVED: 'resolved',
  IGNORED: 'ignored'
} as const

// 资源使用率阈值
export const USAGE_THRESHOLD = {
  CRITICAL: 90,
  WARNING: 75,
  NORMAL: 0
} as const

// 颜色常量
export const COLORS = {
  SUCCESS: '#10b981',
  WARNING: '#f59e0b',
  DANGER: '#ef4444',
  INFO: '#3b82f6',
  PRIMARY: '#6366f1'
} as const

// 分页常量
export const PAGINATION = {
  DEFAULT_PAGE_SIZE: 10,
  PAGE_SIZE_OPTIONS: [10, 20, 50, 100] as const,
  MIN_PAGE: 1
} as const

// 侧边栏常量
export const SIDEBAR = {
  MIN_WIDTH: 180,
  MAX_WIDTH: 400,
  DEFAULT_WIDTH: 240,
  COLLAPSED_WIDTH: 80
} as const

// LocalStorage Keys
export const STORAGE_KEYS = {
  AUTH_TOKEN: 'authToken',
  USERNAME: 'username',
  USER_INFO: 'userInfo',
  THEME: 'theme',
  FONT_SIZE: 'fontSize'
} as const

// API超时时间
export const API_TIMEOUT = 10000

// 防抖延迟
export const DEBOUNCE_DELAY = 300
